<template>
    <div>
        <a-modal
            :title="'特殊事项-其他 附件' + (uploadFilesListConfig.isUpload?'上传':'查看')"
            :visible="visible"
            @ok="handleOk"
            @cancel="handleCancel"
            :width="800"
            >
            <div>
                <uploadFilesList
                    v-if="visible"
                    :config="uploadFilesListConfig"
                    :filesFormState="{...formState}"/>
            </div>
            <template #footer>
                <a-button class="blue-btn" @click="handleCancel">关闭</a-button>
            </template>
        </a-modal>
    </div>
</template>
<script>
import uploadFilesList from '@/views/administrativeOffice-new/modal/uploadFilesList'
export default {
    components:{
        uploadFilesList
    },
    props:{

    },
    data(){
        return{
            visible:false,
            formState: {},
            uploadFilesListConfig: {
                isUpload: false,
            },
        }
    },
    watch:{

    },
    mounted(){


    },
    methods:{
        getData(row,up){
            //console.log(row)
            this.formState = row
            this.uploadFilesListConfig.isUpload = up
            this.visible = true
        },
        handleOk(){
        },
        handleCancel(){
            this.visible = false
        }
    }
}
</script>
